﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ScoreCardRuleList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Shop.Score.ScoreRuleList" %>

<%@ Import Namespace="ZLCMS.Business.Shop.Data" %>
<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>


<%=_framePage.TabInfoHtml()%>

<div class="pageHeader">
	<div class="searchBar">

        <table class="searchContent" width="100%">
        	<tr>
            <td></td>
        	</tr>
        </table>
	    <div class="subBar">
			<ul>
			<li>
			    <a class="button" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.query(this);" 
			    target="navTab" rel="<%= _framePage.NavTabId %>" title="<%= _framePage.NavTabTitle %>"><span>&nbsp;查&nbsp;询&nbsp;</span></a>
			</li>

			</ul>
	    </div>
	</div>
</div>


<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add"  href="/SystemManage/Basics/Shop/Score/ScoreRuleDetail.aspx?kind=<%=ScoreRuleKind.ScoreCard %>" target="navTab" rel="ScoreRuleDetail" title="积分卡规则明细"><span>添加</span></a></li>
            <li><a class="delete" href="/SystemManage/Basics/Shop/Score/ScoreRuleDelete.aspx?kind=<%=ScoreRuleKind.ScoreCard %>" target="selectedTodo" title="请确定要删除勾选积分卡规则"><span>删除</span></a></li>
		</ul>
	</div>
	<div class="tableList"   layoutH="116">
	<table class="list" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
                <th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
				<th width="100px">标题</th>
                <th width="100px">积分</th>
				<th width="160px">活动时间</th>
				<th width="100px">领取限制</th>
				<th width="100px">是否可用</th>
				<th width="120px" align=center>基本操作</th>
				<th width="120px" align=center>积分卡</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="repeater1">
                <ItemTemplate>
			    <tr target="uid" rel=<%# Eval("Id")%>>
                    <td><input name="ids" value="<%#Eval("Id")%>" type="checkbox"/></td>
                    <td><%#Eval("RuleName")%></td>
                    <td><%#Eval("ScoreValue")%></td>
                    <td><%#string.Format("{0:yyyy-MM-dd} 至 {1:yyyy-MM-dd}", Eval("StartDate"), Eval("EndDate"))%></td>
                    <td><%#string.Format("{0}天领取{1}次", Eval("LimitDay"), Eval("LimitCount"))%></td>
                    <td><%#ZLCMS.Business.Util.ParamKit.GetValue("YesNo_10", Eval("IsAvailable"), "未知")%></td>
				    <td align=center>
				        <a href="/SystemManage/Basics/Shop/Score/ScoreRuleDetail.aspx?uid=<%# Eval("Id")%>" target="navTab" rel="ScoreRuleDetail" title="积分卡规则明细">编辑</a>
				        &nbsp;&nbsp;
				        <a href="/SystemManage/Basics/Shop/Score/ScoreRuleDelete.aspx?ids=<%# Eval("Id")%>&kind=<%=ScoreRuleKind.ScoreCard %>" target="ajaxTodo" title="请确定要删除">删除</a>
				    </td><td align=center>
                        <a  href="/SystemManage/Basics/Shop/Score/ScoreCardImport.aspx?RuleId=<%# Eval("Id")%>" target="navTab" external="true"  rel="ScoreCardImport" title="导入数据">导入</a>
				        &nbsp;&nbsp;
				        <a href="/SystemManage/Basics/Shop/Score/ScoreCardList.aspx?rootid=<%# Eval("Id")%>&tabid=ScoreCardList&navtabtitle=积分卡管理"  target="navTab" rel="ScoreCardList" title="积分卡管理">编辑</a>
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>

	</div>
	
    
    
<%= _framePage.GetPagerContentHtml() %>
</div>